<template>
  <div class="form-page">
    <el-pagination
      @size-change="handleSizeChange"
      @current-change="handleCurrentChange"
      :current-page="reqOrderInfo.currentPage"
      :page-size="reqOrderInfo.pageSize"
      layout="total, prev, pager, next, jumper"
      :total="reqOrderInfo.total"
    >
    </el-pagination>
  </div>
</template>

<script>
export default {
  props: {
    reqOrderInfo: {
      type: Object,
      default: () => {},
      require: true
    },
    updatePageSize: {
      type: Function,
      require: true
    },
    changePage: {
      type: Function,
      require: true
    }
  },
  methods: {
    handleSizeChange (val) {
      this.updatePageSize(val)
    },
    handleCurrentChange (val) {
      this.changePage(val)
    }
  }
}
</script>

<style lang="less" scoped>
.form-page {
  margin-top: 50px;
}
</style>
